//Practical3D
//Lesson 1. Drawing

/**
Draw triangle
Connect tree points as a solid triangle
*/
virtual void render()
{
	renderer->clear();
	vec3 points[3] = { vec3(1,0,0),vec3(0,1,0),vec3(0,0,1) };
	renderer->bindCoords(points);
	renderer->draw(Renderer::Triangles, 3);
}
/**
Draw quad
Connect four points as a solid square
*/
virtual void render()
{
	renderer->clear();
	vec3 points[4] = { vec3(0,0,0),vec3(0,1,0),vec3(1,1,0),vec3(1,0,0) };
	renderer->bindCoords(points);
	renderer->draw(Renderer::TriangleFan, 3);
}

/**
Draw a unit cube with its corner in the origin
*/

/**
Draw a unit cube with its center in the origin
*/

/**
Draw a 4-sided pyramid
*/

/**
Draw a sphere
*/
vec3* points;
int numPoints;
NativeApp()
{
	//compute the amount of points needed
	
	//fill the triangles of the sphere in polar coordinates
	
}

virtual void render()
{
	renderer->clear();
	renderer->bindCoords(points);
	renderer->draw(Renderer::Triangles, numPoints);
}
